#include "../Base/stdafx.h"
#include "VectorVariable.h"


VectorVariable::VectorVariable(ID3D10EffectVectorVariable* vecVar)
{
	m_Variable = vecVar;
}

VectorVariable::~VectorVariable()
{

}

void VectorVariable::SetVector( const D3DXVECTOR2& vec )
{
	m_Variable->SetFloatVector((float*)&const_cast<D3DXVECTOR2&>(vec));
}

void VectorVariable::SetVector( const D3DXVECTOR3& vec )
{
	m_Variable->SetFloatVector((float*)&const_cast<D3DXVECTOR3&>(vec));
}

void VectorVariable::SetVector( const D3DXVECTOR4& vec )
{
	m_Variable->SetFloatVector((float*)&const_cast<D3DXVECTOR4&>(vec));
}